package jehc.cloud.gen.service.impl;

import jehc.cloud.common.base.BaseService;
import jehc.cloud.common.util.ExceptionUtil;
import jehc.cloud.gen.dao.XtGeneratorTableDao;
import jehc.cloud.gen.model.XtGeneratorTable;
import jehc.cloud.gen.dao.XtGeneratorTableDao;
import jehc.cloud.gen.model.XtGeneratorTable;
import jehc.cloud.gen.service.XtGeneratorTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
/**
 * @Desc 代码生成-表信息
 * @Author 邓纯杰
 * @CreateTime 2012-12-12 12:12:12
 */
@Service("xtGeneratorTableService")
public class XtGeneratorTableServiceImpl extends BaseService implements XtGeneratorTableService {
	@Autowired
	private XtGeneratorTableDao xtGeneratorTableDao;
	/**
	 * 获取所有表
	 * @return
	 */
	public List<XtGeneratorTable> getXtGeneratorTableList(Map<String, Object> condition){
		try {
			return xtGeneratorTableDao.getXtGeneratorTableList(condition);
		} catch (Exception e) {
			throw new ExceptionUtil(e.getMessage(),e.getCause());
		}
	}
}
